package com.example.mybatis.controller;

import com.example.mybatis.entity.UserTest;
import com.example.mybatis.mapper.UserTestMapper;
import com.example.mybatis.vo.UserTestRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/user")
public class UserTestController {

    @Resource
    private UserTestMapper userTestMapper;

    @RequestMapping("/search")
    public List<UserTest> search(UserTestRequest request){
        return userTestMapper.search(request);
    }
}
